<?php

// +----------------------------------------------------------------------
// | Copyright (c) 2020 All rights reserved.
// +----------------------------------------------------------------------
// | User: Simony <1362229026@qq.com>
// | wechat: Shen86579595
// +----------------------------------------------------------------------
namespace app\admin\validate;
use think\Validate;

class ChatRecord extends Validate
{
    protected $rule = [
        'receive_type' => 'require|number',
        'is_read' => 'require|number',
        'type' => 'require|number',
        'status' => 'require|number',
        'state' => 'require|number',
        'second' => 'require|number',
        'is_count' => 'require|number',
        'is_burn' => 'require|number',
    ];
    protected $message = [
        'member_id.require' => '发消息用户id必须',
        'receive_flag_id.require' => '标识id 接收会员id或者，接收的组必须',
        'content.require' => '内容必须',
        'data.require' => '相关数据必须',
    ];
}